-
Notifications
You must be signed in to change notification settings - Fork 161
Removed instructions about the OSGi Web Console. #25649
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
…ration-guide Signed-off-by: Atwijukire Ariho Seth <[email protected]>
|
Hello @OndroMih, Please have a look thru this PR and let me know whether there is anything to be added. |
…ration-guide Signed-off-by: Atwijukire Ariho Seth <[email protected]>
…ration-guide Signed-off-by: Atwijukire Ariho Seth <[email protected]>
| gogo$ | ||
| ---- | ||
| [[to-download-and-install-the-glassfish-osgi-web-console]] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only the OSGi Web Console was removed from GlassFish. The other OSGi functionality is still supported.
Please remove only the following sections:
- "To Download and Install the GlassFish OSGi Web Console"
- "To Access the GlassFish OSGi Web Console Through the {productName} Administration Console"
Keep the rest of the OSGi documentation:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only the OSGi Web Console was removed from GlassFish. The other OSGi functionality is still supported.
Web console exists in the source tree under appserver/osgi-platforms.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting, I didn't know about this. However, that module is just a phony. I added it to the GlassFish modules directory, it adds a tab for server and instances, but when the tab is clicked, it just redirects to http://localhost:8080/osgi/system/console/bundles, which is not found. I assume that this URL used to be provided either by Felix or by some external plugin and now it's just not there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that there's a Web Console by Felix, which is probably what the GlassFish OSGi Web Console plugin wants to redirect to: https://github.com/apache/felix-dev/tree/master/webconsole
I couldn't get it running easily with GlassFish. I downloaded the Felix Web Console bundle from Maven Central, but it requires a few more bundles and either some integration with GlassFish or a bundle that runs it inside an embedded Jetty.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After a few hours, I managed to deploy the Felix Web Console:

It requires to download around 10 bundles from Maven central and install them into the GlassFish modules directory, and also modify the glassfish/config/osgi.properties file to set a few properties. I managed to run it only via an embedded Jetty, on a separate port, and with a hardcoded username and password in osgi.properties.
I also managed to deploy it using a HTTP bridge bundle but that requires some more config and probably a custom bundle to integrate the Felix servlet to GlassFish. Security could be also bridged so that it's protected by GlassFish user and password. But, again, some more coding required.
If we decided it's worth it, I will modify the docs to describe how to install the OSGi Web Console. If not, I will just write a blog about it and we can just merge this PR and remove the docs.
|
Hi @Ariho-Seth , the core OSGi functionality still works in GlassFish. Only the Web Console was removed - it's a component in the Admin UI of GlassFish. OSGi can be still administered via command line commands. |
…administration-guide" This reverts commit fed9863.
…n-guide Signed-off-by: Atwijukire Ariho Seth <[email protected]>
|
Sorry @OndroMih, for the misunderstanding above. But I've updated the PR for to reflect the suggested changes. |
|
|
||
| * xref:overview.adoc#gkvay[1-1 Determining if the DAS Requires Restart] | ||
| * xref:overview.adoc#gkvba[1-2 Determining if an Instance Requires Restart] | ||
| * xref:overview.adoc#GSADG1053[1-3 Listing Apache Felix Gogo Remote Shell Commands] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be kept, do not remove this, this functionality works
|
Hi, @Ariho-Seth, based on the conversation #25649 (comment), we found out that it may be possible to install the Web Console. It cannot be installed from the Update Center anymore, but it might be possible to install it by directly added files to a GlassFish installation. I think it's worth exploring this and keep the documentation for now. Let's pause work on this PR until we decide whether we want to explore how to install the Web Console or we just remove the docs. |
Sure thing, I'll be ready anytime. |
…n-guide Signed-off-by: Atwijukire Ariho Seth <[email protected]>
|
Just for the record, I was able to install the Apache Felix OSGi console into GlassFish 7.0.25 in this way, bit hacky and manual: I downloaded the following Maven artifacts into the glassfish/modules directory:
And these ones into the glassfish/modules/autostart directory, so that it starts automatically at server startup:
Then I edited the file glassfish/config/osgi.properties and set This is required because the module org.osgi.service.log-1.5.0.jar requires the In the osgi.properties file, I added Then I could run GlassFish and access the OSGi console at https:// |
In this PR, information about the OSGi module management was removed from the administration-guide documentation because it no longer exists in GlassFish 7.
The last update of the artifacts version in the Maven Central was made in 2017 for GlassFish 5.0.
Fixes #24314